package com.example.protocol.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author 作者
 * @since 2021-11-19
 */
@TableName("t_data_cabinet")
public class CabinetData implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 数据ID
     */
    @TableId(value = "data_id", type = IdType.AUTO)
    private Long dataId;

    /**
     * 读取时间
     */
    private LocalDateTime readTime;

    /**
     * 电池柜ID
     */
    private String cabinetId;

    /**
     * 水位报警
     */
    private Integer floodWarn;

    /**
     * 火灾报警
     */
    private Integer fireWarn;

    /**
     * GSM信号强度
     */
    private Integer gsm;

    /**
     * 电池柜经度
     */
    private BigDecimal lng;

    /**
     * 电池柜纬度
     */
    private BigDecimal lat;

    public Long getDataId() {
        return dataId;
    }

    public void setDataId(Long dataId) {
        this.dataId = dataId;
    }
    public LocalDateTime getReadTime() {
        return readTime;
    }

    public void setReadTime(LocalDateTime readTime) {
        this.readTime = readTime;
    }
    public String getCabinetId() {
        return cabinetId;
    }

    public void setCabinetId(String cabinetId) {
        this.cabinetId = cabinetId;
    }
    public Integer getFloodWarn() {
        return floodWarn;
    }

    public void setFloodWarn(Integer floodWarn) {
        this.floodWarn = floodWarn;
    }
    public Integer getFireWarn() {
        return fireWarn;
    }

    public void setFireWarn(Integer fireWarn) {
        this.fireWarn = fireWarn;
    }
    public Integer getGsm() {
        return gsm;
    }

    public void setGsm(Integer gsm) {
        this.gsm = gsm;
    }
    public BigDecimal getLng() {
        return lng;
    }

    public void setLng(BigDecimal lng) {
        this.lng = lng;
    }
    public BigDecimal getLat() {
        return lat;
    }

    public void setLat(BigDecimal lat) {
        this.lat = lat;
    }

    @Override
    public String toString() {
        return "DataCabinet{" +
                "dataId=" + dataId +
                ", readTime=" + readTime +
                ", cabinetId=" + cabinetId +
                ", floodWarn=" + floodWarn +
                ", fireWarn=" + fireWarn +
                ", gsm=" + gsm +
                ", lng=" + lng +
                ", lat=" + lat +
                "}";
    }
}
